package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.TWorkOrderItem;

/**
 * 工单详情Mapper接口
 * 
 * @author ruoyi
 * @date 2024-05-26
 */
public interface TWorkOrderItemMapper 
{
    /**
     * 查询工单详情
     * 
     * @param id 工单详情主键
     * @return 工单详情
     */
    public TWorkOrderItem selectTWorkOrderItemById(Long id);

    /**
     * 查询工单详情列表
     * 
     * @param tWorkOrderItem 工单详情
     * @return 工单详情集合
     */
    public List<TWorkOrderItem> selectTWorkOrderItemList(TWorkOrderItem tWorkOrderItem);

    /**
     * 新增工单详情
     * 
     * @param tWorkOrderItem 工单详情
     * @return 结果
     */
    public int insertTWorkOrderItem(TWorkOrderItem tWorkOrderItem);

    /**
     * 修改工单详情
     * 
     * @param tWorkOrderItem 工单详情
     * @return 结果
     */
    public int updateTWorkOrderItem(TWorkOrderItem tWorkOrderItem);

    /**
     * 删除工单详情
     * 
     * @param id 工单详情主键
     * @return 结果
     */
    public int deleteTWorkOrderItemById(Long id);

    /**
     * 批量删除工单详情
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTWorkOrderItemByIds(Long[] ids);

    public int updateStatusByWorkOrderId(Object workOrderId);

    public Long countByWorkOrderId(Object workOrderId);
}
